#include<stdio.h>
#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
bool cmp(int a, int b)
{
	return a > b;
}
int main()
{
	int i,num[20],searchNum;
	for (i = 0; i < 15; i++)cin >> num[i];
	sort(num, num + 15,cmp);
	cin >> searchNum;
	for (i = 0; i < 15; i++)if (num[i] == searchNum)
	{
		cout << i + 1 << endl;
		return 0;
	}
	cout << "wucishu!" << endl;
	return 0;
}